package liangtWorkSpace;

/**
 * @ClassName Test
 * @Description: TODO
 * @Author 梁涛
 * @Date 2020/12/15:17:11
 * @Version V1.0
 */
public class TestDemo {

    public static void main(String[] args) {
        String a = "aaa";
        String b = "aaa";
        String c = new String(a);
        System.out.println(a == b);
        System.out.println(b == c);
        System.out.println(a == c);
        System.out.println(check("Admin"));
        int i = 2;
        replace(a);
        System.out.println("aaa = "+a);

    }
    static void replace(String str){
        str = "CA";
        System.out.println("CA = "+str);
    }
    static boolean check(String str){
        return str.toLowerCase() == "admin";
    }
}
